const baseUrl = 'http://localhost:8082/api'
export function request(obj) {
	return new Promise((resolve, reject) => {
		uni.request({
			url: baseUrl + obj.url,
			method: obj.method || 'get',
			data: obj.data || {},
			success: resolve,
			fail: reject
		})
	})
}